Answer:

The two statements should start out the program.

Loop Initialization is done Once

Here is the modified program:

' Complete program
' 
PRINT "How many times do you want to print Hello"
INPUT ENDVALUE

LET COUNT = 1
DO WHILE COUNT <= ENDVALUE

  PRINT "Hello"  
  LET COUNT = COUNT + 1

LOOP

END

In this program, statements handle three tasks:

  1. Some statements get input from the user.
  2. Some statements are concerned with running the loop.
  3. One statement prints "Hello".

It might look like this is a lot of work. But if the user types in 1000, "Hello" is printed 1000 times. (Remember the power of cycles.) This is much better than typing the statement 1000 times.

QUESTION 6:

Say that the user runs the program and enters a 0:

How many times do you want to print Hello
? 0

How many "Hellos" will appear on the monitor screen?